package org.bw.bookstore.common.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.Transient;
import java.io.Serializable;

/**
 *@program: wisdom_bookstore
 *@description: 书籍插图实体类
 *@Author: 孙冬雪
 *@Date: 2020-10-22 09:50
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Entity
@TableName("tb_book_img")
public class TbBookImg extends BaseEntity implements Serializable {

    /**
     * 书籍插图图片
     *
     * @Author 孙冬雪
     * @Date 2020/10/21 11:47
     **/
    private String bookImgUrl;

    /**
     * 书籍详情唯一标识
     *
     * @Author 孙冬雪
     * @Date 2020/10/21 13:19
     **/
    private String bookDetailedCode;

    /**
     * 图书详情
     * @Author 孙冬雪
     * @Date 2020/10/21 15:12
     **/
    @TableField(exist = false)
    @Transient
    private TbBookDetailed bookDetailed;

}
